home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / inet / internet-drafts / draft-houttuin-rfc1327-tutor-01.txt < prev    next >
Text File  |  1993-03-03  |  79KB  |  2,126 lines

  1.  
  2. INTERNET DRAFT                                        Jeroen Houttuin
  3. RARE WG-MSG                                          RARE Secretariat
  4. Rev. 2.1                                             18 February 1993
  5.                                             Expires on September 1993
  6.  
  7.  
  8.  
  9.                            RFC 1327 tutorial
  10.                                    
  11.  
  12.  
  13. Abstract
  14.  
  15.     
  16.     This tutorial was produced to help RFC 1327 novices, especially
  17.     new gateway managers, to find their way into this complicated
  18.     subject. End-users are encouraged to read the COSINE MHS pocket
  19.     user guide [pug] instead.
  20.     
  21.     The introduction is general enough to be read not only by gateway
  22.     managers, but also by those who are new to e-mail in general.
  23.     Parts of this introduction can be skipped as needed. To a certain
  24.     extent, this document can also be used as a reference guide to
  25.     X.400 <-> RFC 822 gatewaying. Wherever there is a lack of detail
  26.     in the tutorial, it will at least refer to the corresponding
  27.     chapters in other documents. As such, it shields the RFC 1327
  28.     novice from too much detail.
  29.  
  30.  
  31. Status of this Memo
  32.  
  33.     
  34.     This document is an Internet Draft. Internet Drafts are working
  35.     documents of the Internet Engineering Task Force (IETF), its
  36.     Areas, and its Working Groups. Note that other groups may also
  37.     distribute working documents as Internet Drafts.
  38.     
  39.     Internet Drafts are draft documents valid for a maximum of six
  40.     months. Internet Drafts may be updated, replaced, or obsoleted by
  41.     other documents at any time.  It is not appropriate to use
  42.     Internet Drafts as reference material or to cite them other than
  43.     as a "working draft" or "work in progress."
  44.     
  45.     Please check the I-D abstract listing contained in each Internet
  46.     Draft directory to learn the current status of this or any other
  47.     Internet Draft.
  48.     
  49.     Distribution of this memo is unlimited.
  50.  
  51.  
  52. Acknowledgements
  53.  
  54.     
  55.     This tutorial was originally produced by SWITCH within the context
  56.     of the COSINE MHS contract. It is heavily based on other papers
  57.     and books, such as [JH-92], [HTA-faq], [822], [1280], [1310], and
  58.     [1327], from which large parts of text were reproduced (slightly
  59.     edited) by kind permission from the authors. Such reproduced
  60.     paragraphs are labelled as : <[source]...... Text ......[source]>
  61.  
  62.  
  63. Internet-Draft             RFC 1327 tutorial             February 1993
  64.  
  65.  
  66. Disclaimer
  67.  
  68.     
  69.     This document is not everywhere exact and or complete in
  70.     describing the involved standards. Irrelevant details are left out
  71.     and some concepts are simplified for the ease of understanding.
  72.     For reference purposes, always use the original standards.
  73.  
  74.  
  75. Format
  76.  
  77.     
  78.     This Internet Draft is available in ASCII as well as in Postscript
  79.     format. Important features for a tutorial that are only available
  80.     in the Postscript version include:
  81.         
  82.         - Pictures
  83.         - Index
  84.         - Type styles
  85.     
  86.     Please use the Postscript version whenever possible.
  87.  
  88.  
  89. Contents
  90.  
  91.     1. Introduction                
  92.       1.1. What is X.400           
  93.       1.2. What is an RFC          
  94.       1.3. What is RFC 822         
  95.       1.4. What is RFC 1327        
  96.     2. What must be mapped         
  97.     3. Address mapping             
  98.       3.1. X.400 addresses         
  99.       3.2. RFC 822 addresses       
  100.       3.3. RFC 1327 address mapping
  101.         3.3.1. Default mapping     
  102.           3.3.1.1. X.400 -> RFC 822
  103.           3.3.1.2. RFC 822 -> X.400
  104.         3.3.2. Exception mapping   
  105.           3.3.2.1. PersonalName    
  106.           3.3.2.2. Mapping between RFC 822 and X.400 domains
  107.             3.3.2.2.1. X.400 -> RFC 822  
  108.             3.3.2.2.2. RFC 822 -> X.400  
  109.       3.4. Table co-ordination           
  110.       3.5. Local additions               
  111.             3.6. Product specific formats
  112.       3.7. Guidelines for mapping rule definition           
  113.     4. Conclusion               
  114.     Appendix A. References      
  115.     Appendix B. Index           
  116.     Appendix C. Abbreviations   
  117.     Appendix D. Author's address
  118.  
  119. Houttuin                   Expires August 1993               [page  1]
  120.  
  121. Internet-Draft             RFC 1327 tutorial             February 1993
  122.  
  123. 1. Introduction
  124.  
  125.     
  126.     This chapter describes the history, status, future, and contents
  127.     of the involved standards.
  128.     
  129.     <[JH-92] There is a major difference between mail systems used in
  130.     the USA and Europe. Mail systems originated mainly in the USA,
  131.     where their explosive growth started as early as in the seventies.
  132.     Different company-specific mail systems were developed
  133.     simultaneously, which, of course, led to a high degree of
  134.     incompatibility. The Defense Advanced Research Projects Agency
  135.     (DARPA) which had to use machines of many different manufacturers,
  136.     triggered the development of the Internet and the TCP/IP protocol
  137.     suite, which was later accepted as a standard by the US Department
  138.     of Defense (DoD). The Internet mail format is defined in RFC 822
  139.     and the protocol used for exchanging mail is known as the simple
  140.     mail transfer protocol (SMTP). Together with UUCP and the BITNET
  141.     protocol NJE, SMTP has become one of the main de facto mail
  142.     standards in the US.
  143.     
  144.     Unfortunately, all these protocols were incompatible, which
  145.     explains the need to come to an acceptable global mail standard.
  146.     CCITT and ISO began working on a norm and their work converged in
  147.     what is now known as the X.400 Series Recommendations. One of the
  148.     objectives was to define a super set of the existing systems,
  149.     allowing for easier integration later on. Some typical positive
  150.     features of X.400 are the store-and-forward mechanism, the
  151.     hierarchical address space and the possibility of combining
  152.     different types of body parts into one message body.
  153.     
  154.     In Europe, the mail system boom came later. Since there was not
  155.     much equipment in place yet, it made sense to use X.400 as much as
  156.     possible right from the beginning. A strong X.400 lobby existed,
  157.     especially in West-Germany (DFN). In the R&D world, mostly EAN was
  158.     used because it was the only public domain X.400 product at that
  159.     time.
  160.     
  161.     At the moment, the two worlds of X.400 and SMTP are moving towards
  162.     each other. On the one hand, the American Department of Defense,
  163.     one of the main forces behind the Internet, has decided that
  164.     future networking should be based on ISO standards, implying a
  165.     migration from SMTP to X.400. On the other hand X.400 users in
  166.     Europe have a need to communicate with the Internet. Due to the
  167.     large traffic volume between the two nets it is not enough
  168.     interconnecting them with a single international gateway. The load
  169.     on such a gateway would be too heavy. Direct access using local
  170.     gateways is more feasible. A striking example of the opening-up of
  171.     the ISO oriented world is the reorganisation of the RARE working
  172.     groups in June 1992. The new working groups are now also
  173.     discussing non ISO protocols, such as RFC 822.
  174.     
  175.     Although the expected success of X.400 has been a bit
  176.  
  177.  
  178. Houttuin                   Expires August 1993               [page  2]
  179.  
  180. Internet-Draft             RFC 1327 tutorial             February 1993
  181.  
  182.  
  183.     disappointing (mainly because no good products were available),
  184.     the future of e-mail systems must still be seen in the context of
  185.     this standard.
  186.     
  187.     And although in the long run X.400 is likely to take over the
  188.     world of e-mail systems, SMTP cannot be neglected over the next
  189.     few years. Especially the simple installation procedure and the
  190.     high degree of connectivity will contribute to a growing number of
  191.     RFC 822 installations in Europe in the near future.
  192.  
  193.  
  194. 1.1. What is X.400
  195.  
  196.     
  197.     In October 1984, the Plenary Assembly of the CCITT accepted a
  198.     standard to facilitate international message exchange between
  199.     subscribers to computer based store-and-forward message services.
  200.     This standard is known as the CCITT X.400 series recommendations
  201.     ([CCITT 84], from now on called X.400(84)) and happens to be the
  202.     first CCITT recommendation that relates to the OSI application
  203.     layer. It should be noted that X.400(84) is based on work done in
  204.     the IFIP Working Group 6.5, and that ISO at the same time was
  205.     proceeding towards a compatible document. However, the
  206.     standardisation efforts of CCITT and ISO did not converge in time,
  207.     to allow the publication of a common text.
  208.     
  209.     X.400(84) triggered the development of software implementing
  210.     (parts of) the standard in the laboratories of almost all major
  211.     computer vendors and many software houses. Similarly, public
  212.     carriers in many countries started to plan X.400(84) based message
  213.     systems that would be offered to the users as value added
  214.     services. Early implementations appeared shortly after first
  215.     drafts of the standard were published and a considerable number of
  216.     commercial systems are available nowadays.
  217.     
  218.     X.400(84) describes a functional model for a Message Handling
  219.     System (MHS) and associates services and protocols. The model
  220.     illustrated in the Figure 2.1. defines the components of a
  221.     distributed messaging system:
  222.     
  223.     Users in the MHS environment are provided with the capability of
  224.     sending and receiving messages. Users in the context of an MHS may
  225.     be humans or application processes. The User Agent (UA) is a
  226.     process that makes the services of the MTS available to the user.
  227.     A UA may be implemented as a computer program that provides
  228.     utilities to create, send, receive and perhaps archive messages.
  229.     Each UA, and thus each user, is identified by a name (each user
  230.     has its own UA).
  231.     
  232.     The Message Transfer system (MTS) transfers messages from an
  233.     originating UA to a recipient UA. As implied by the figure shown
  234.     above, data sent from UA to UA may be stored temporarily in
  235.  
  236.  
  237. Houttuin                   Expires August 1993               [page  3]
  238.  
  239. Internet-Draft             RFC 1327 tutorial             February 1993
  240.  
  241.  
  242.     several intermediate Message Transfer Agents (MTA), i.e. a store-
  243.     and-forward mechanism is being used. An MTA forwards received
  244.     messages to a next MTA or to the recipient UA.
  245.                                    
  246.                                    
  247.                                    
  248.                                Fig. 2.1.
  249.     
  250.     X.400(84) divides layer 7 of the OSI Reference Model into 2
  251.     sublayers, the User Agent Layer (UAL) and the Message Transfer
  252.     Layer (MTL) as shown in the following figure:
  253.                                    
  254.                                    
  255.                                    
  256.                                Fig. 2.2.
  257.     
  258.     The MTL is involved in the transport of messages from UA to UA,
  259.     using one or several MTAs as intermediaries. By consequence,
  260.     routing issues are entirely dealt with in the MTL. The MTL in fact
  261.     corresponds to the postal service that forwards letters consisting
  262.     of an envelope and a content. Two protocols, P1 and P3, are used
  263.     between the MTL entities (MTA Entity (MTAE), and Submission and
  264.     Delivery Entity (SDE)) to reliably transport messages. The UAL
  265.     embodies  peer UA Entities (UAE), which interpret the content of a
  266.     message and offer specific services to the application process.
  267.     Depending on the application to be supported on top of the MTL,
  268.     one of several end-to-end protocols (Pc) is used between UAEs. For
  269.     electronic mail, X.400(84) defines the protocol P2 as part of the
  270.     InterPersonal Messaging Service (IPMS). Conceivably other UAL
  271.     protocols may be defined, e.g. a protocol to support the exchange
  272.     of electronic business documents.
  273.     
  274.     The structure of an InterPersonal Message (IPM) can be visualised
  275.     as follows (Note that the envelope is not a part of the IPM; it is
  276.     generated by the MTL):
  277.                                    
  278.                                    
  279.                                    
  280.                                Fig. 2.3.
  281.     
  282.     An IPM heading contains information that is specific for an
  283.     interpersonal message like 'originator', 'subject', etc. Each
  284.     bodypart can contain one information type, text, voice or as a
  285.     special case, a forwarded message. A forwarded message consists of
  286.     the original message together with Previous Delivery Information
  287.     (PDI), which is drawn from the original delivery envelope.
  288.     
  289.     Early experience with X.400(84) showed that the standard had
  290.     various shortcomings. Therefore CCITT, in parallel with ISO,
  291.     corrected and extended the specification during its 1984 to 1988
  292.     study period and produced a revised standard ([CCITT/ISO 88]),
  293.     which was accepted at the 1988 CCITT Plenary Meeting ([BP-88]).
  294.  
  295.  
  296. Houttuin                   Expires August 1993               [page  4]
  297.  
  298. Internet-Draft             RFC 1327 tutorial             February 1993
  299.  
  300.  
  301.     Amongst others, X.400(88) differs from X.400(84) in that it
  302.     defines a Message Store (MS), which can be seen as a kind of
  303.     database for messages. An MS enables the end-user to run a UA
  304.     locally, e.g. on a PC, whilst the messages are stored in the MS,
  305.     which is co-located with the MTA. The MTA can thus always deliver
  306.     incoming messages to the MS instead of to the UA. The MS can even
  307.     automatically file incoming messages according to certain
  308.     criteria. Other enhancements in the 88 version affect security and
  309.     distribution lists. [JH-92]>
  310.     
  311.     As for its relevance, X.400 is the only non-proprietary standard
  312.     for interchange of electronic mail that has the sanction of an
  313.     official standards body. The status of the 2 main flavours is:
  314.         
  315.         - X.400(84): This is what most implementations today in fact
  316.           run.
  317.         
  318.         - X.400(88): Although this version has clear advantages over
  319.           X.400(84), the number of systems implementing it has been
  320.           rather disappointing. X.400(88) is also an International
  321.           Standard (called 'MOTIS') by ISO.
  322.  
  323.  
  324. 1.2. What is an RFC
  325.  
  326.     
  327.     <[1310] The Internet, a loosely-organised international
  328.     collaboration of autonomous, interconnected networks, supports
  329.     host-to-host communication through voluntary adherence to open
  330.     protocols and procedures defined by Internet Standards. There are
  331.     also many isolated internets, i.e., sets of interconnected
  332.     networks, that are not connected to the Internet but use the
  333.     Internet Standards. The architecture and technical specifications
  334.     of the Internet are the result of numerous research and
  335.     development activities conducted over a period of two decades,
  336.     performed by the network R&D community, by service and equipment
  337.     vendors, and by government agencies around the world.
  338.     
  339.     In general, an Internet Standard is a specification that is stable
  340.     and well-understood, is technically competent, has multiple,
  341.     independent, and interoperable implementations with operational
  342.     experience, enjoys significant public support, and is recognisably
  343.     useful in some or all parts of the Internet.
  344.     
  345.     The principal set of Internet Standards is commonly known as the
  346.     "TCP/IP protocol suite". As the Internet evolves, new protocols
  347.     and services, in particular those for Open Systems Interconnection
  348.     (OSI), have been and will be deployed in traditional TCP/IP
  349.     environments, leading to an Internet that supports multiple
  350.     protocol suites.
  351.     
  352.     The Internet Activities Board (IAB) is the primary co-ordinating
  353.  
  354.  
  355. Houttuin                   Expires August 1993               [page  5]
  356.  
  357. Internet-Draft             RFC 1327 tutorial             February 1993
  358.  
  359.  
  360.     committee for Internet design, engineering, and management [1].
  361.     The IAB has delegated to its Internet Engineering Task Force
  362.     (IETF) the primary responsibility for the development and review
  363.     of potential Internet Standards from all sources. The IETF forms
  364.     Working Groups to pursue specific technical issues, frequently
  365.     resulting in the development of one or more specifications that
  366.     are proposed for adoption as Internet Standards.
  367.     
  368.     Final decisions on Internet standardisation are made by the IAB,
  369.     based upon recommendations from the Internet Engineering Steering
  370.     Group (IESG), the leadership body of the IETF. IETF Working Groups
  371.     are organised into areas, and each area is co-ordinated by an Area
  372.     Director. The Area Directors and the IETF Chairman are included in
  373.     the IESG. [1310]>
  374.     
  375.     Any individual or group (e.g. an IETF working group) can submit a
  376.     document as a so-called Internet Draft. After at least half a
  377.     year, if the document, being well discussed, looks stable, the
  378.     IESG may propose to the IAB to turn the Internet-Draft into a
  379.     'Requests For Comments' (RFC). RFCs cover a wide range of topics,
  380.     from early discussion of new research concepts to status memos
  381.     about the Internet. All Internet Standards are published as RFCs,
  382.     but not all RFCs specify standards.
  383.     
  384.     As an example, this tutorial is also an Internet Draft that is to
  385.     become an Informational RFC later on.
  386.     
  387.     Once a document is assigned an RFC number and published, that RFC
  388.     is never revised or re-issued with the same number.
  389.  
  390.  
  391. 1.3. What is RFC 822
  392.  
  393.     
  394.     <[822] RFC 822 defines a standard for the format of Internet text
  395.     messages. Messages consist of lines of text. No special provisions
  396.     are made for encoding drawings, facsimile, speech, or structured
  397.     text. No significant consideration has been given to questions of
  398.     data compression or to transmission and storage efficiency, and
  399.     the standard tends to be free with the number of bits consumed.
  400.     For example, field names are specified as free text, rather than
  401.     special terse codes.
  402.     
  403.     A general "memo" framework is used. That is, a message consists of
  404.     some information in a rigid format (the 'headers'), followed by
  405.     the main part of the message (the 'body'), with a format that is
  406.     not specified in RFC 822. It does define the syntax of several
  407.     fields of the headers section; some of these fields must be
  408.     included in all messages. [822]>
  409.     
  410.     <[1327] RFC 822 is used in conjunction with a number of different
  411.     message transfer protocol environments (822-MTSs).
  412.  
  413.  
  414. Houttuin                   Expires August 1993               [page  6]
  415.  
  416. Internet-Draft             RFC 1327 tutorial             February 1993
  417.  
  418.  
  419.         
  420.         - SMTP Networks: On the Internet and other TCP/IP networks,
  421.           RFC 822 is used in conjunction with two other standards: RFC
  422.           821, also known as Simple Mail Transfer Protocol (SMTP)
  423.           [821], and RFC 920 which is a Specification for domains and
  424.           a distributed name service [920].
  425.         
  426.         - UUCP Networks: UUCP is the UNIX to UNIX CoPy protocol, which
  427.           is usually used over dialup telephone networks to provide a
  428.           simple message transfer mechanism.
  429.         
  430.         - BITNET: Some parts of Bitnet and related networks use RFC
  431.           822 related protocols, with EBCDIC encoding.
  432.         
  433.         - JNT Mail Networks: A number of X.25 networks, particularly
  434.           those associated with the UK Academic Community, use the JNT
  435.           (Joint Network Team) Mail Protocol, also known as Greybook.
  436.     
  437.     RFC 822 is based on the assumption that there is an underlying
  438.     service, which in RFC 1327 is called the 822-MTS service. The 822-
  439.     MTS service provides three basic functions:
  440.         
  441.         1. Identification of a list of recipients.
  442.         2. Identification of an error return address.
  443.         3. Transfer of an RFC 822 message.
  444.     
  445.     It is possible to achieve 2) within the RFC 822 header.  Some 822-
  446.     MTS protocols, in particular SMTP, can provide additional
  447.     functionality, but as these are neither mandatory in SMTP, nor
  448.     available in other 822-MTS protocols, they are not considered
  449.     here. Details of aspects specific to two 822-MTS protocols are
  450.     given in Appendices B and C of RFC 1327. An RFC 822 message
  451.     consists of a header, and content which is uninterpreted ASCII
  452.     text. The header is divided into fields, which are the protocol
  453.     elements. Most of these fields are analogous to P2 heading fields,
  454.     although some are analogous to MTS Service Elements. [1327]>
  455.  
  456.  
  457. 1.4. What is RFC 1327
  458.  
  459.     
  460.     Before describing RFC 1327 in more detail, it is useful to quickly
  461.     compare RFC 822 with X.400 <[HTA-faq]:
  462.     
  463.     RFC 822 has got:
  464.         
  465.         - Simplicity
  466.         - Wide acceptance
  467.         - Large user base
  468.         - Public domain and commercial implementations
  469.         - Public domain and commercial user interfaces
  470.         - History
  471.  
  472.  
  473. Houttuin                   Expires August 1993               [page  7]
  474.  
  475. Internet-Draft             RFC 1327 tutorial             February 1993
  476.  
  477.  
  478.     
  479.     X.400 has got:
  480.         
  481.         - Acceptance in the standards communities
  482.         - Commercial vendors of service
  483.         - Defined ways to transfer things other than ASCII text (but
  484.           only a few implementations have implemented it)
  485.         - Standard notifications of delivery to user's mailbox and
  486.           notification of a message being read by the user (these ones
  487.           are often implemented, too!)
  488.         - Future [HTA-faq]>
  489.     
  490.     <[1327] There is a large community using RFC 822 based protocols
  491.     for mail services, who will wish to communicate with users of the
  492.     InterPersonal Messaging Service (IPMS) provided by X.400 systems,
  493.     and the other way around. This will also be a requirement in cases
  494.     where RFC 822 communities intend to make a transition to use
  495.     X.400, as conversion will be needed to ensure a smooth service
  496.     transition. It is expected that there will be more than one
  497.     gateway, and RFC 1327 will enable them to behave in a consistent
  498.     manner. Note that the term gateway is used to describe a component
  499.     performing the protocol mappings between RFC 822 and X.400. This
  500.     is standard usage amongst mail implementors, but should be noted
  501.     carefully by transport and network service implementors.
  502.     
  503.     RFC 1327 describes a set of mappings that will enable interworking
  504.     between systems operating X.400(both 84 and 88) and systems using
  505.     RFC 822, or protocols derived from RFC 822. The approach of RFC
  506.     1327 aims to maximise the services offered across the boundary,
  507.     whilst not requiring unduly complex mappings. The mappings should
  508.     not require any changes to end systems. [1327]>
  509.     
  510.     Some words about the history of RFC 1327: It started out in June
  511.     1986, when RFC 987 defined for X.400(84) what RFC 1327 defines for
  512.     X.400(84 and 88). RFC 1026 added a number of additions and
  513.     corrections to RFC 987. In December 1989, RFC 1138, which had a
  514.     very short lifetime, was the first one to deal with X.400(88). It
  515.     was obsoleted by RFC 1148 in March 1990. Finally, in May 1992, RFC
  516.     1327 obsoleted all of its ancestors.
  517.     
  518.     RFC 1327 describes all mappings in term of X.400(88). It describes
  519.     how these mappings should be applied to X.400(84) systems in its
  520.     Appendix G.
  521.  
  522.  
  523. 2. What must be mapped
  524.  
  525.     
  526.     Both RFC 822 and X.400 messages consist of certain service
  527.     elements (such as 'originator', 'subject'). As long as a message
  528.     stays within its own world, the behaviour of such service elements
  529.     is well defined. An important goal for a gateway is to provide the
  530.  
  531.  
  532. Houttuin                   Expires August 1993               [page  8]
  533.  
  534. Internet-Draft             RFC 1327 tutorial             February 1993
  535.  
  536.  
  537.     highest possible service level when a message crosses the boundary
  538.     between the two mail worlds.
  539.     
  540.     RFC 1327 defines mappings between the different service elements.
  541.     Some of these mappings are quite straight-forward, such as
  542.     '822.Subject:' <-> 'IPMS.Subject' (IPMS = Inter-Personal Messaging
  543.     Service), but there are also more complicated cases. Especially
  544.     when certain service elements exist only in one of the two worlds
  545.     (e.g. interpersonal notifications), or when service elements exist
  546.     in both worlds, but with slightly different interpretations, some
  547.     tricks may be needed to provide the service over the gateway
  548.     border.
  549.     
  550.     Apart from mapping between the service elements, a gateway must
  551.     also map the types and values assigned to these service elements.
  552.     Again, this may in certain cases be very simple, e.g. 'IA5 ->
  553.     ASCII'. The most complicated example is mapping address spaces.
  554.     The problem is that address spaces are not something static that
  555.     can be defined within RFC 1327. Address spaces change
  556.     continuously, and they are defined by certain addressing
  557.     authorities, which are not always parallel in the RFC 822 and the
  558.     X.400 world. A valid mapping between two addresses assumes however
  559.     that there is 'administrative equivalence' between the two domains
  560.     in which the addresses are (see also [MSG-93]).
  561.     
  562.     <[1327] The following basic mappings are defined in RFC 1327. When
  563.     going from RFC 822 to X.400, an RFC 822 message and the associated
  564.     822-MTS information is always mapped into an IPM (MTA, MTS, and
  565.     IPMS Services). Going from X.400 to RFC 822, an RFC 822 message
  566.     and the associated 822-MTS information may be derived from:
  567.         
  568.         - A Report (MTA, and MTS Services)
  569.         
  570.         - An InterPersonal Notification (IPN) (MTA, MTS, and IPMS
  571.           services)
  572.         
  573.         - An InterPersonal Message (IPM) (MTA, MTS, and IPMS services)
  574.           [1327]>
  575.     
  576.     Probes (MTA Service) have no equivalent in RFC 821 or RFC 822 and
  577.     are thus handled by the gateway. The gateways Probe confirmation
  578.     should be interpreted as if the gateway were the final MTA to
  579.     which the Probe was sent. Optionally, if the gateway uses RFC 821
  580.     as an 822-MTS, it may use the results of the 'VRFY' command to
  581.     test whether it would be able to deliver (or forward) mail to the
  582.     mailbox under probe.
  583.     
  584.     MTS Messages containing Content Types other than those defined by
  585.     the IPMS are not mapped by the gateway, and should be rejected at
  586.     the gateway.
  587.     
  588.  
  589.  
  590.  
  591. Houttuin                   Expires August 1993               [page  9]
  592.  
  593. Internet-Draft             RFC 1327 tutorial             February 1993
  594.  
  595.  
  596.     Some basic examples of mappings between service elements are
  597.     listed below.
  598.     
  599.     Service elements:
  600.          
  601.          RFC 822         X.400
  602.          ------------------------------------------------
  603.          Reply-To:       IPMS.Heading.reply-recipients
  604.          Subject:        IPMS.Heading.subject
  605.          In-Reply-To:    IPMS.Heading.replied-to-ipm
  606.          References:     IPMS.Heading.related-IPMs
  607.          To:             IPMS.Heading.primary-recipients
  608.          Cc:             IPMS.Heading.copy-recipients
  609.     
  610.     Service element types:
  611.          
  612.          RFC 822         X.400
  613.          ------------------------------------------------
  614.          ASCII           PrintableString
  615.          Boolean         Boolean
  616.     
  617.     Service element values:
  618.          
  619.          RFC 822         X.400
  620.          ------------------------------------------------
  621.          oh_dear         oh(u)dear
  622.          False           00000000
  623.     
  624.     There are some mappings between service elements that are rather
  625.     tricky and enough important to mention in this tutorial. These are
  626.     the mappings of origination-related headers and some envelope
  627.     fields:
  628.     
  629.     RFC 822 -> X.400:
  630.         
  631.         - If Sender: is present, Sender: is mapped to
  632.           IPMS.Heading.originator, and From: is mapped to
  633.           IPMS.Heading.authorizing-users. If not, From: is mapped to
  634.           IPMS.Heading.originator.
  635.     
  636.     X.400 -> RFC 822
  637.         
  638.         - If IPMS.Heading.authorizing-users is present,
  639.           IPMS.Heading.originator is mapped to Sender:, and
  640.           IPMS.Heading.authorizing-users is mapped to From: . If not,
  641.           IPMS.Heading.originator is mapped to "From:".
  642.     
  643.     Envelope attributes
  644.         
  645.         - RFC 1327 doesn't define how to map the MTS.OriginatorName
  646.           and the MTS.RecipientName (often referred to as the
  647.           P1.originator and P1.recipient), since this depends on which
  648.  
  649.  
  650. Houttuin                   Expires August 1993               [page 10]
  651.  
  652. Internet-Draft             RFC 1327 tutorial             February 1993
  653.  
  654.  
  655.           underlying 822-MTS is used. In the very common case that RFC
  656.           821 (SMTP) is used for this purpose, the mapping is normally
  657.           as follows:
  658.             
  659.             MTS.Originator-name <->   MAIL FROM:
  660.             MTS.Recipient-name  <->   RCPT TO:
  661.         
  662.           This explains why there are no mapped equivalents for those
  663.           envelope attributes visible in the heading of an RFC 822
  664.           message.
  665.     
  666.     For more details, refer to RFC 1327, chapters 2.2 and 2.3.
  667.  
  668.  
  669. 3. Address mapping
  670.  
  671.     
  672.     As address mapping is often considered the most complicated part
  673.     of mapping between service element values, this subject is given a
  674.     separate chapter.
  675.     
  676.     Both RFC 822 and X.400 have their own specific address formats.
  677.     RFC 822 addresses are text strings (e.g. "plork@tlec.nl"), whereas
  678.     X.400 addresses are binary (ASN.1) encoded sets of attributes with
  679.     values. Such binary addresses can be made readable for a human
  680.     user by a number of notations; for instance:
  681.         
  682.         C=zz
  683.         ADMD=ade
  684.         PRMD=fhbo
  685.         O=a bank
  686.         S=plork
  687.         G=mary
  688.     
  689.     The rest of this chapter deals with addressing issues and mappings
  690.     between the two address forms in more detail.
  691.  
  692.  
  693. 3.1. X.400 addresses
  694.  
  695.     
  696.     As already stated above, an X.400 address is modelled as a set of
  697.     attributes. Some of these attributes are mandatory, others are
  698.     optional. Each attribute has a type and a value, e.g. the Surname
  699.     attribute has type IA5text, and an instance of this attribute
  700.     could have the value 'Kille'. Attributes are divided in Standard
  701.     Attributes (SAs) and Domain Defined Attributes (DDAs).
  702.     
  703.     X.400 defines four basic forms of addresses ([X.402(88), 18.5), of
  704.     which the 'Mnemonic O/R Address' is the form that is most used,
  705.     and is the only form that is dealt with in this tutorial. This is
  706.  
  707.  
  708.  
  709. Houttuin                   Expires August 1993               [page 11]
  710.  
  711. Internet-Draft             RFC 1327 tutorial             February 1993
  712.  
  713.  
  714.     roughly the same address format as what in the 84 version was
  715.     known as 'O/R names: form 1, variant 1' ([X.400(84)] 3.3.2).
  716.  
  717.  
  718. Standard Attributes
  719.  
  720.     
  721.     Standard Attributes (SAs) are attributes that all X.400
  722.     installations are supposed to 'understand' (i.e. use for routing),
  723.     for example: 'country name', 'given name' or 'organizational
  724.     unit'. The most commonly used SAs in X.400(84) are:
  725.         
  726.         surName (S)
  727.         givenName (G)
  728.         initials (I*)
  729.         generationQualifyer (GQ)
  730.         OrganizationalUnits (OU*)
  731.         OrganizationName (O)
  732.         PrivateDomainName (PRMD)
  733.         AdministrationDomainName (ADMD)
  734.         CountryName (C)
  735.     
  736.     The combination of S, G, I* and GQ is often referred to as the
  737.     PersonalName (PN).
  738.     
  739.     Although there is no hierarchy (of addressing authorities) defined
  740.     by the standards, the following hierarchy is considered natural:
  741.         
  742.         PersonalName < OU < OU <...< O < P < A < C
  743.     
  744.     In addition to the SAs listed above, X.400(88) defines some extra
  745.     attributes, the most important of which is
  746.         
  747.         Common Name (CN)
  748.     
  749.     CN can be used instead of or even together with PN. The problem in
  750.     X.400(84) was that PN (S G I* GQ) was well suited to represent
  751.     persons, but not roles and abstract objects, such as distribution
  752.     lists. Even though postmaster clearly is a role, not someone's
  753.     real surname, it is quite usual in X.400(84) to address a
  754.     postmaster with S=postmaster. In X.400(88), the same postmaster
  755.     would be addressed with CN=postmaster .
  756.     
  757.     The attributes C and ADMD are mandatory (to be present), and may
  758.     not be empty. At least one of the attributes PRMD, O, OU, PN and
  759.     CN must be present.
  760.     
  761.     PRMD and ADMD are often felt to be routing attributes that don't
  762.     really belong in addresses. As an example of how such address
  763.     attributes can be used for the purpose of routing, consider two
  764.     special values for ADMD:
  765.         
  766.  
  767.  
  768. Houttuin                   Expires August 1993               [page 12]
  769.  
  770. Internet-Draft             RFC 1327 tutorial             February 1993
  771.  
  772.  
  773.         - ADMD=0; (zero) should be interpreted as 'the PRMD in this
  774.           address is not connected to any ADMD'
  775.         
  776.         - ADMD= ; (single SPACE) should be interpreted as 'the PRMD in
  777.           this address is reachable via any ADMD in this country'. It
  778.           is expected that ISO will express this 'any' value by means
  779.           of a missing ADMD attribute in future versions of MOTIS.
  780.           This representation can uniquely identify the meaning 'any',
  781.           as a missing or empty ADMD field as such is not allowed.
  782.     
  783.     Addresses are defined in X.400 using the Abstract Syntax Notation
  784.     One (ASN.1). X.409 defines how definitions in ASN.1 should be
  785.     encoded into binary format. Note that the meaning, and thus the
  786.     ASN.1 encoding, of a missing attribute is not the same as that of
  787.     an empty attribute. In addressing, this difference is often
  788.     represented as follows:
  789.         
  790.         - PRMD=; means that this attribute is present in the address,
  791.           but its value is empty. Since this is not very useful, it's
  792.           hardly ever being used. The only examples the author knows
  793.           of were caused by mail managers who should have had this
  794.           tutorial before they started defining their addresses :-)
  795.         
  796.         - PRMD=@; means that this attribute is not present in the
  797.           address.
  798.           {NB. This is only necessary if an address notation (see
  799.           below) requires that every single attribute in the hierarchy
  800.           is somehow listed. Otherwise, a missing attribute can of
  801.           course be represented by simply not mentioning it. This
  802.           means that this syntax is mostly used in mapping rules, not
  803.           by end users.}
  804.     
  805.     Addresses that only contain SAs are often referred to as Standard
  806.     Attribute Addresses (SAAs).
  807.  
  808.  
  809. Domain Defined Attributes
  810.  
  811.     
  812.     Domain Defined Attributes (DDAs) were meant to have a meaning only
  813.     within a certain context (originally this was intended to be the
  814.     context of a certain management domain), such as a company context
  815.     (for example: DDA type=internal-phone-nr value=9571). Such DDAs
  816.     are often used along with the PN or CN attributes.
  817.     
  818.     A bit tricky is the use of DDAs to encode service element types or
  819.     values that are only available on one side of a service gateway.
  820.     The most important examples of such usage are:
  821.        
  822.        RFC 1327 (e.g. DDA type=RFC-822 value=u(u)ser(a)isode.com)
  823.        
  824.        RFC 1328 ;(e.g. DDA type=CommonName value=mhs-discussion-list)
  825.  
  826.  
  827. Houttuin                   Expires August 1993               [page 13]
  828.  
  829. Internet-Draft             RFC 1327 tutorial             February 1993
  830.  
  831.  
  832.     
  833.     The RFC 1327 example will get more than enough attention later on
  834.     in this tutorial. As for the second example: RFC 1328 defines the
  835.     downgrading from X.400(88) to X.400(84), and the DDA of type
  836.     CommonName is a straightforward trick to represent the attribute
  837.     CN in an X.400(84) address.
  838.     
  839.     In the context of RFC 1327 and RFC 1328, DDAs are normally used
  840.     _instead of_ PN and CN, whose equivalents are implicitly encoded
  841.     within the DDA (localpart=u_ser; CN=mhs-discussion-list).
  842.     
  843.     Addresses that contain both SAs and DDAs are often referred to as
  844.     DDA addresses.
  845.  
  846.  
  847. X.400 address notation
  848.  
  849.     
  850.     X.400 only prescribes the binary encoding of addresses, it doesn't
  851.     standardise how such addresses should be written on paper or what
  852.     they should look like in a user interface on a computer screen.
  853.     There exist a number of recommendations for X.400 address
  854.     representation though.
  855.   
  856.   - JTC proposes an annex to CCITT Rec. F.401 and ISO/IEC 10021-2,
  857.     called 'representation of o/r addresses for human usage'.
  858.     According to this proposal, an X.400 address would look as
  859.     follows:
  860.   
  861.     G=jo; S=plork; O=a bank; OU1=owe; OU2=you; P=fhbo; A=ade; C=zz
  862.     
  863.     Note that in this format, the hierarchy of O and OUs is exactly
  864.     the opposite of what one would expect intuitively (the hierarchy
  865.     is increasing from left to right, except for the O and OUs, where
  866.     it's right to left).
  867.   
  868.   - Following what was originally used in the DFN-EAN software, most
  869.     EAN versions today use an address representation similar to the
  870.     JTC proposal, with a few differences:
  871.             
  872.             - natural ordering for O and OUs
  873.             - no numbering of OUs.
  874.             - allows writing ADMD and PRMD instead of A and P
  875.   
  876.     The address in the example above could, in EAN, be represented as:
  877.   
  878.     G=jo; S=plork; OU=you; OU=owe; O=a bank; P=fhbo; A=ade; C=zz
  879.   
  880.     This DFN-EAN format is still often referred to as _the_ 'readable
  881.     format'.
  882.   
  883.  
  884.  
  885.  
  886. Houttuin                   Expires August 1993               [page 14]
  887.  
  888. Internet-Draft             RFC 1327 tutorial             February 1993
  889.  
  890.  
  891.   - RARE  Working Group 1 (WG1) has made a recommendation that is very
  892.     similar to the DFN-EAN format, but with the hierarchy reversed.
  893.     Further ADMD and PRMD are used instead of A and P. This results in
  894.     the address above to be represented as:
  895.   
  896.     C=zz; ADMD=ade; PRMD=fhbo; O=a bank; OU=owe; OU=you; S=plork; G=jo
  897.     
  898.     This format is recognised by most versions of the EAN software. In
  899.     the R&D community, this is also the prevalent address
  900.     representation for business cards, letter heads, etc. This is also
  901.     the format that will be used for the examples in this tutorial.
  902.   
  903.   - RFC 1327 defines a slash separated address representation:
  904.   
  905.     /G=jo/S=plork/OU=you/OU=owe/O=a bank/P=fhbo/A=ade/C=zz/
  906.     
  907.     Not only is this format used by the PP software, it is also
  908.     widespread for business cards and letter heads in the R&D
  909.     community.
  910.   
  911.   - RFC 1327 finally defines yet another format for X.400 _domains_
  912.     (not for human users):
  913.   
  914.     OU$you.OU$owe.O$a bank.P$fhbo.A$ade.C$zz
  915.     
  916.     the main advantage of this format is that it is better machine-
  917.     parseble than the others. This immediately implies its main
  918.     disadvantage: it is barely readable for humans. Every attribute
  919.     within the hierarchy should be listed, thus a missing attribute
  920.     must be represented by the '@' sign (e.g. $a bank.P$@.A$ade.C$zz).
  921.   
  922.   - Paul-Andr Pays (INRIA) has proposed a format that combines the
  923.     readability of the JTC format with the parsebility of the RFC 1327
  924.     domain format. Although a number of operational tools within the
  925.     GO-MHS community are already based on (variants of) this proposal,
  926.     its future is still uncertain.
  927.  
  928.  
  929. 3.2. RFC 822 addresses
  930.  
  931.     
  932.     An RFC 822 address takes the form of an ASCII string of the
  933.     following form:
  934.         
  935.         localpart@domainpart
  936.     
  937.     "domainpart" is sub-divided into
  938.     
  939.     domainpart = sdom(n).sdom(n-1)....sdom(2).sdom(1).dom
  940.     
  941.     "sdom" stands for "subdomain", "dom" stands for "top-level-
  942.     domain".
  943.  
  944.  
  945. Houttuin                   Expires August 1993               [page 15]
  946.  
  947. Internet-Draft             RFC 1327 tutorial             February 1993
  948.  
  949.  
  950.     
  951.     "localpart" is normally a login name, and thus typically is a
  952.     surname or an abbreviation for this. It can also be the address of
  953.     a local distribution list or an alias that will allow redirecting
  954.     mail (e.g. mary.plork@tlec.nl might be an alias for
  955.     plork@tlec.nl). The localpart in the latter address may again be a
  956.     surname alias for Mary's login name pl, so that the mail will
  957.     eventually be delivered to pl@tlec.nl)
  958.     
  959.     The hierarchy (of addressing authorities) in an RFC 822 address is
  960.     as follows:
  961.         
  962.         localpart < sdom(n) < sdom(n-1) <...< dom
  963.     
  964.     Some virtual real-life examples:
  965.         
  966.         joemp@tlec.nl
  967.         tsjaka.kahn@walhalla.diku.dk
  968.         a13_vk@cs.rochester.edu
  969.     
  970.     In the above examples, 'nl', 'dk', and 'edu' are valid,
  971.     registered, top level domains. Note that some networks that
  972.     have their own addressing schemes are also reachable by way of
  973.     'RFC 822-like' addressing. Consider the following addresses:
  974.         
  975.         oops!user          (a UUCP address)
  976.         V13ENZACC@CZKETH5A (a BITNET address)
  977.     
  978.     These addresses can be expressed in RFC 822 format:
  979.         
  980.         user@oops.uucp
  981.         V13ENZACC@CZKETH5A.BITNET
  982.     
  983.     Although the domains '.uucp', '.bitnet', and '.earn' are not
  984.     officially registered, they are used in the Internet to express
  985.     that the mail should be routed to a gateway.
  986.     
  987.     As for mapping such addresses to X.400, there is no direct mapping
  988.     defined between X.400 on the one hand and UUCP and BITNET on the
  989.     other, so they are normally mapped to RFC 822 style first, and
  990.     then to X.400 if needed.
  991.  
  992.  
  993. 3.3. RFC 1327 address mapping
  994.  
  995.     
  996.     Despite the difference in address formats, the address spaces
  997.     defined by RFC 822 and X.400 are quite similar. The most important
  998.     parallels are:
  999.         
  1000.         - both address spaces are hierarchical
  1001.         - top level domains and country codes are often the same
  1002.         - localparts and surnames are often the same
  1003.  
  1004. Houttuin                   Expires August 1993               [page 16]
  1005.  
  1006. Internet-Draft             RFC 1327 tutorial             February 1993
  1007.  
  1008.  
  1009.     
  1010.     This similarity can of course be exploited in address mapping
  1011.     algorithms. This is also done in RFC 1327 (NB only in the
  1012.     exception mapping algorithm. See chapter 3.3.2).
  1013.     
  1014.     Note that the actual mapping algorithm is much more complicated
  1015.     than shown below. For details, see RFC 1327, chapter 4.
  1016.  
  1017.  
  1018. 3.3.1. Default mapping
  1019.  
  1020.     
  1021.     The default RFC 1327 address mapping can be visualised as a
  1022.     function with input and output parameters:
  1023.         
  1024.         
  1025.           address information of the gateway performing the mapping
  1026.                                       |
  1027.                                       v
  1028.                              +-----------------+
  1029.         RFC 822 address <--->| address mapping | <---> X.400 address
  1030.                              +-----------------+
  1031.     
  1032.     I.e. to map an address from X.400 to RFC 822 or vice versa, the
  1033.     only extra input needed is the address information of the local
  1034.     gateway.
  1035.  
  1036.  
  1037. 3.3.1.1. X.400 -> RFC 822
  1038.  
  1039.     
  1040.     There are two kinds of default address mapping from X.400 to RFC
  1041.     822: one to map a real X.400 address to RFC 822, and another to
  1042.     decode an RFC 822 address that was mapped to X.400 (i.e. to
  1043.     reverse the default RFC 822 -> X.400 mapping).
  1044.     
  1045.     To map a real X.400 address to RFC 822, the slash separated
  1046.     notation of the X.400 address (see chapter 3.1.) is mapped to
  1047.     'localpart', and the local RFC 822 domain of the gateway that
  1048.     performs the mapping is used as the domain part. As an example,
  1049.     the gateway 'gw.switch.ch' would perform the following mappings:
  1050.         
  1051.         C=zz; ADMD=ade; PRMD=fhbo; O=tlec; S=plork; ->
  1052.         /C=zz/ADMD=ade/PRMD=fhbo/O=tlec/S=plork/@gw.switch.ch
  1053.         
  1054.         C=zz; ADMD=ade; PRMD=fhbo; O=a bank; S=plork->
  1055.         "/C=zz/ADMD=ade/PRMD=fhbo/O=a bank/S=plork/"@gw.switch.ch
  1056.     
  1057.     The quotes in the second example are mandatory if the X.400
  1058.     address contains spaces, otherwise the syntax rules for the RFC
  1059.     822 localpart would be violated.
  1060.     
  1061.  
  1062.  
  1063. Houttuin                   Expires August 1993               [page 17]
  1064.  
  1065. Internet-Draft             RFC 1327 tutorial             February 1993
  1066.  
  1067.  
  1068.     This default mapping algorithm is generally referred to as 'left-
  1069.     hand-side encoding'.
  1070.     
  1071.     To reverse the default RFC 822 -> X.400 mapping (see chapter
  1072.     3.3.1.2): if the X.400 address contains a DDA of the type RFC-822,
  1073.     the SAs can be discarded, and the value of this DDA is the desired
  1074.     RFC 822 address (NB. Some characters in the DDA value must be
  1075.     decoded first. See chapter 3.3.1.2.). For example, the gateway
  1076.     'GW.tlec.nl' would perform the following mapping:
  1077.         
  1078.         DD.RFC-822=bush(a)dole.us; C=nl; ADMD=tlec; PRMD=GW
  1079.         ->
  1080.         bush@dole.us
  1081.  
  1082.  
  1083. 3.3.1.2. RFC 822 -> X.400
  1084.  
  1085.     
  1086.     There are also two kinds of default address mapping from RFC 822
  1087.     to X.400: one to map a real RFC 822 address to X.400, and another
  1088.     to decode an X.400 address that was mapped to RFC 822 (i.e. to
  1089.     reverse the default X.400 -> RFC 822 mapping).
  1090.     
  1091.     To map a real RFC 822 address to X.400, the RFC 822 address is
  1092.     encoded in a DDA of type RFC-822 , and the SAs of the local
  1093.     gateway performing the mapping are added to form the complete
  1094.     X.400 address. This mapping is generally referred to as 'DDA
  1095.     mapping'. As an example, the gateway 'C=nl; ADMD=tlec; PRMD=GW'
  1096.     would perform the following mapping:
  1097.         
  1098.         bush@dole.us  ->
  1099.         DD.RFC-822=bush(a)dole.us; C=nl; ADMD=tlec; PRMD=GW
  1100.     
  1101.     As for the encoding/decoding of RFC 822 addresses in DDAs, it is
  1102.     noted that RFC 822 addresses may contain characters (@ ! % etc.)
  1103.     that cannot directly be represented in a DDA. DDAs are of the (not
  1104.     so rich) type 'PrintableString', so these special characters need
  1105.     a special encoding. For details, refer to RFC 1327, chapter 3.4.
  1106.     Some examples:
  1107.         
  1108.         100%name@address    ->    DD.RFC-822;=100(p)name(a)address
  1109.         u_ser!name@address  ->    DD.RFC-822;=u(u)ser(b)(a)address
  1110.     
  1111.     To decode an X.400 address that was mapped to RFC 822: if the RFC
  1112.     822 address has a slash separated representation of a complete
  1113.     X.400 mnemonic O/R address in its localpart, that address is the
  1114.     result of the mapping. As an example, the gateway 'gw.switch.ch'
  1115.     would perform the following mapping:
  1116.         
  1117.         /C=zz/ADMD=ade/PRMD=fhbo/O=tlec/S=plork/G=mary/@gw.switch.ch
  1118.         ->
  1119.         C=zz; ADMD=ade; PRMD=fhbo; O=tlec; S=plork; G=mary
  1120.  
  1121.  
  1122. Houttuin                   Expires August 1993               [page 18]
  1123.  
  1124. Internet-Draft             RFC 1327 tutorial             February 1993
  1125.  
  1126.  
  1127.  
  1128.  
  1129. 3.3.2. Exception mapping according to mapping tables
  1130.  
  1131.     
  1132.     Chapter 3.3.1. showed that it is theoretically possible to use RFC
  1133.     1327 with default mapping only. Although this provides a very
  1134.     simple, straightforward, way to map addresses, there are quite
  1135.     some good reasons not to use RFC 1327 this way:
  1136.         
  1137.         - RFC 822 users are used to writing simple addresses of  the
  1138.           form 'localpart@domainpart'. They often consider X.400
  1139.           addresses, and thus also the left-hand-side encoded
  1140.           equivalents, as unnecessarily long and complicated. They
  1141.           would rather be able to address an X.400 user as if she had
  1142.           a 'normal' RFC 822 address. For example take the mapping
  1143.             
  1144.             C=zz; ADMD=ade; PRMD=fhbo; O=tlec; S=plork;     ->
  1145.             /C=zz/ADMD=ade/PRMD=fhbo/O=tlec/S=plork/@gw.switch.ch
  1146.         
  1147.           from chapter 3.3.1.1. RFC 822 users would find it much more
  1148.           'natural' if this address could be expressed in RFC 822 as:
  1149.             
  1150.             plork@tlec.fhbo.ade.nl
  1151.         
  1152.         - X.400 users are used to using X.400 addresses with SAs only.
  1153.           They often consider DDA addresses as complicated, especially
  1154.           if they have to encode the special characters, @ % ! etc,
  1155.           manually. They would rather be able to address an RFC 822
  1156.           user as if he had a 'normal' X.400 address. For example take
  1157.           the mapping
  1158.             
  1159.             bush@dole.us
  1160.             ->
  1161.             DD.RFC-822=bush(a)dole.us;
  1162.             C=nl; ADMD= ; PRMD=tlec; O=gateway
  1163.         
  1164.           from chapter 3.3.1.2. X.400 users would find it much more
  1165.           'natural' if this address could be expressed in X.400 as:
  1166.             
  1167.             C=us; ADMD=dole; S=bush
  1168.         
  1169.         - Many organisations are using both RFC 822 and X.400
  1170.           internally, and still want all their users to have a simple,
  1171.           unique address in both mail worlds. Note that in the default
  1172.           mapping, the mapped form of an address completely depends on
  1173.           which gateway  performed the mapping. This also results in a
  1174.           complication of more technical nature:
  1175.         
  1176.         - The tricky 'third party problem'. This problem must not
  1177.           necessarily be understood to read the rest of this chapter.
  1178.           If it looks too complicated, please feel free to skip it
  1179.           until you are more familiar with the basics.
  1180.  
  1181. Houttuin                   Expires August 1993               [page 19]
  1182.  
  1183. Internet-Draft             RFC 1327 tutorial             February 1993
  1184.  
  1185.  
  1186.         
  1187.           The third party problem is a routing problem caused by
  1188.           mapping. As an example for DDA mappings (the example holds
  1189.           just as well for left-hand-side encoding), consider the
  1190.           following situation (see Fig. 3.1.): RFC 822 user X in
  1191.           country A sends a message to two recipients: RFC 822 user Y,
  1192.           and X.400 user Z, both in country B:
  1193.             
  1194.             From: X@A
  1195.             To:   Y@B
  1196.                   /C=B/.../S=Z/@GW.A
  1197.         
  1198.           Since the gateway in country A maps all addresses in the
  1199.           message, Z will see both X's and Y's address as DDA-encoded
  1200.           RFC 822 addresses, with the SAs of the gateway in country A:
  1201.             
  1202.             From: DD.RFC-822=X(a)A; C=A;....;O=GW
  1203.             To:   DD.RFC-822=Y(a)B; C=A;....;O=GW
  1204.                   C=B;...;S=Z
  1205.                                    
  1206.                                    
  1207.                                    
  1208.                    Fig. 3.1 The third party problem
  1209.                                    
  1210.         
  1211.           Now if Z wants to 'group reply' to both X and Y, his reply
  1212.           to Y will be routed over the gateway in country A, even
  1213.           though Y is located in the same country:
  1214.             
  1215.             From: C=B;...;S=Z
  1216.             To:   DD.RFC-822=Y(a)B; C=A;....;O=GW
  1217.                   DD.RFC-822=X(a)A; C=A;....;O=GW
  1218.         
  1219.           The best way to travel for a message from Z to Y would of
  1220.           course have been over the gateway in country B:
  1221.             
  1222.             From: C=B;...;S=Z
  1223.             To:   DD.RFC-822=Y(a)B; C=B;....;O=GW
  1224.                   DD.RFC-822=X(a)A; C=A;....;O=GW
  1225.         
  1226.           The third party problem is caused by the fact that local
  1227.           gateway address information is mapped into addresses.
  1228.         
  1229.           Ideally, the third party problem shouldn't exist. After all,
  1230.           address mapping affects addresses, and an address is not a
  1231.           route.... The reality is different however. For instance,
  1232.           very few X.400 products are capable to route messages on the
  1233.           contents of a DDA (actually, only RFC 1327 gateways will be
  1234.           able to interpret this type of DDA, and who says that the
  1235.           reply will pass a local gateway on its route back?). The
  1236.           same limitations hold for RFC 822 based mailers: most are
  1237.           not capable to make routing decisions on the content of a
  1238.  
  1239.  
  1240. Houttuin                   Expires August 1993               [page 20]
  1241.  
  1242. Internet-Draft             RFC 1327 tutorial             February 1993
  1243.  
  1244.  
  1245.           left-hand-side encoded X.400 address. So in practice,
  1246.           addressing (and thus also mapping) will very well affect
  1247.           routing.
  1248.     
  1249.     To make mapping between the addresses more user friendly, and to
  1250.     avoid the problems shown above, RFC 1327 allows for overruling the
  1251.     default left-hand-side encoding and DDA mapping algorithms. This
  1252.     is done by specifying associations (mapping rules) between certain
  1253.     domainparts and X.400 domains. An X.400 domain consists of the
  1254.     domain-related SAs of Mnemonic O/R address (i.e. All SAs except PN
  1255.     and CN). The idea is to use the similarities between both address
  1256.     spaces, and directly map similar address parts onto each other.
  1257.     If, for the domain in the address to be mapped, an explicit
  1258.     mapping rule can be found, the mapping is performed between:
  1259.         
  1260.         localpart     <->   PersonalName
  1261.         domainpart    <->   X.400 domain
  1262.     
  1263.     Only if no mapping rule can be found - i.e. the address mapping
  1264.     must fall back to its default algorithm - is the address
  1265.     information of the gateway performing the mapping used as an input
  1266.     parameter.
  1267.     
  1268.     The complete mapping function can thus be visualised as follows:
  1269.         
  1270.         
  1271.           address information of the gateway performing the mapping
  1272.                                       |
  1273.                                       v
  1274.                              +-----------------+
  1275.         RFC 822 address <--->| address mapping | <---> X.400 address
  1276.                              +-----------------+
  1277.                                       ^
  1278.                                       |
  1279.                     domain associations (mapping rules)
  1280.  
  1281.  
  1282. 3.3.2.1. PersonalName and localpart mapping
  1283.  
  1284.     
  1285.     Since the mapping between these address parts is independent of
  1286.     the mapping rules that are used, and because it follows a simple,
  1287.     two-way algorithmic approach, this subject is discussed in a
  1288.     separate sub-chapter first.
  1289.     
  1290.     The X.400 PersonalName consists of givenName, initials, and
  1291.     surName. RFC 1327 assumes that generationQualifyer is not used.
  1292.     
  1293.     To map a localpart to an X.400 PN, the localpart is scanned for
  1294.     dots, which are considered delimiters between the components of
  1295.     PN, and also between single initials. In order not to put too much
  1296.  
  1297.  
  1298.  
  1299. Houttuin                   Expires August 1993               [page 21]
  1300.  
  1301. Internet-Draft             RFC 1327 tutorial             February 1993
  1302.  
  1303.  
  1304.     detail in this tutorial, only a few examples are shown here. For
  1305.     the detailed algorithm, see RFC 1327, chapter 4.2.1.
  1306.         
  1307.         Marshall.Rose             <->   G=Marshall;S=Rose
  1308.         M.T.Rose                  <->   I=MT;S=Rose
  1309.         Marshall.M.T.Rose         <->   G=Marshall;I=MT;S=Rose
  1310.     
  1311.     To map an X.400 PN to an RFC 822 localpart, take the non-empty PN
  1312.     attributes, put them into their hierarchical order (G I* S), and
  1313.     connect them with periods.
  1314.     
  1315.     Some exceptions are caused by the fact that left-hand-side
  1316.     encoding can also be mixed with exception mapping. This is shown
  1317.     in more detail in the following sub-chapters.
  1318.  
  1319.  
  1320. 3.3.2.2. Mapping between RFC 822 and X.400 domains
  1321.  
  1322.     
  1323.     A mapping rule associates two domains: an X.400 domain and an RFC
  1324.     822 domain. The X.400 domain is written in the RFC 1327 domain
  1325.     notation, so that both domains have the same hierarchical order.
  1326.     The domains are written on one line, separated by a '#' sign. For
  1327.     instance:
  1328.         
  1329.         arcom.ch#ADMD$arcom.C$ch#
  1330.         PRMD$tlec.ADMD$ade.C$nl#tlec.nl#
  1331.     
  1332.     A mapping rule must at least contain a top level domain and a
  1333.     country code. If an address must be mapped, a mapping rule with
  1334.     the longest domain match is sought. The associated domain in the
  1335.     mapping rule is used as the domain of the mapped address. The
  1336.     remaining domains are mapped one by one following the natural
  1337.     hierarchy. Concrete examples are shown in the following sub-
  1338.     chapters.
  1339.  
  1340.  
  1341. 3.3.2.2.1. X.400 -> RFC 822
  1342.  
  1343.     As an example, consider the mapping rule:
  1344.         
  1345.         PRMD$tlec.ADMD$ade.C$nl#tlec.nl#
  1346.     
  1347.     Then the address C=nl; ADMD=ade; PRMD=tlec; O=you; OU=owe; S=plork
  1348.         
  1349.         S      OU  O  PRMD  ADMD  Country
  1350.         |      |   |  |     |     |
  1351.         plork owe you tlec  ade   nl
  1352.     
  1353.     would be mapped as follows. The Surname 'plork' is mapped to the
  1354.     localpart 'plork', see chapter 3.3.2.1. The domain
  1355.     'PRMD$tlec.ADMD$ade.C$nl' is mapped according to the mapping rule:
  1356.  
  1357.  
  1358. Houttuin                   Expires August 1993               [page 22]
  1359.  
  1360. Internet-Draft             RFC 1327 tutorial             February 1993
  1361.  
  1362.  
  1363.         
  1364.         localpart
  1365.            |  sdom3
  1366.            |    | sdom2
  1367.            |    |   |  sdom1
  1368.            |    |   |   |  top-level-domain
  1369.            |    |   |   |   |
  1370.         plork@         tlec.nl
  1371.     
  1372.     The remaining SAs (O and one OU) are mapped one by one following
  1373.     the natural hierarchy: O is mapped to sdom2, OU is mapped to
  1374.     sdom3:
  1375.         
  1376.         localpart
  1377.            | sdom3
  1378.            |  | sdom2
  1379.            |  |   |  sdom1
  1380.            |  |   |   |  top-level-domain
  1381.            |  |   |   |    |
  1382.         plork@owe.you.tlec.nl
  1383.     
  1384.     Thus the mapped address is:
  1385.         
  1386.         plork@owe.you.tlec.nl
  1387.     
  1388.     The name of the file containing the listing of all such mapping
  1389.     rules, which is distributed to all gateways world-wide, is widely
  1390.     known under the following names:
  1391.         
  1392.         'mapping 1'
  1393.         'mapping table 1'
  1394.         'map1'
  1395.         'table 1'
  1396.         'X2R'
  1397.     
  1398.     As already announced, there is an exceptional case were localpart
  1399.     and PN are not directly mapped onto each other: sometimes it is
  1400.     necessary to use the localpart for other purposes. If the X.400
  1401.     address contains attributes that would not allow for the simple
  1402.     mapping:
  1403.         
  1404.         localpart     <->   PersonalName
  1405.         domainpart    <->   X.400 domain
  1406.     
  1407.     (e.g. spaces are not allowed in an RFC 822 domain, GQ and CN
  1408.     cannot be directly mapped into localpart, DDAs of another type
  1409.     than RFC-822), such attributes, together with the PN, are left-
  1410.     hand-side encoded. The domainpart must still be mapped according
  1411.     to the mapping rule as far as possible. This probably needs some
  1412.     examples:
  1413.         
  1414.  
  1415.  
  1416.  
  1417. Houttuin                   Expires August 1993               [page 23]
  1418.  
  1419. Internet-Draft             RFC 1327 tutorial             February 1993
  1420.  
  1421.  
  1422.         C=nl; ADMD=ade; PRMD=tlec; O=owe; OU=you; S=plork; GQ=jr
  1423.         ->
  1424.         /S=plork/GQ=jr/@you.owe.tlec.nl
  1425.         
  1426.         C=nl; ADMD=ade; PRMD=tlec; O=o; OU=spc ctr; OU=u; S=plork
  1427.         ->
  1428.         "/S=plork/OU=u/OU=spc ctr/"@o.tlec.nl
  1429.     
  1430.     Note that in the second example, 'O=o' is still mapped to a
  1431.     subdomain following the natural hierarchy. The problems start with
  1432.     the space in 'OU=spc ctr'.
  1433.  
  1434.  
  1435. 3.3.2.2.2. RFC 822 -> X.400
  1436.  
  1437.     As an example, consider the mapping rule:
  1438.         
  1439.         tlec.nl#PRMD$tlec.ADMD$ade.C$nl#
  1440.     
  1441.     Then the address 'plork@owe.you.tlec.nl' :
  1442.         
  1443.         localpart
  1444.            |  sdom3
  1445.            |    | sdom2
  1446.            |    |   |  sdom1
  1447.            |    |   |   |  top-level-domain
  1448.            |    |   |   |   |
  1449.         plork@owe.you.tlec.nl
  1450.     
  1451.     would be mapped as follows.
  1452.     
  1453.     The localpart 'plork' is mapped to 'S=plork', see chapter 3.3.2.1.
  1454.     
  1455.     The domain 'tlec.nl' is mapped according to the mapping rule:
  1456.         
  1457.         S     OU  OU  O  PRMD  ADMD  Country
  1458.         |                |     |    |
  1459.         plork            tlec  ade  nl
  1460.     
  1461.     The remaining domains (owe.you) are mapped one by one following
  1462.     the natural hierarchy: sdom2 is mapped to O, sdom3 is mapped to
  1463.     OU:
  1464.         
  1465.         S     OU  OU  O  PRMD  ADMD  Country
  1466.         |         |   |  |     |     |
  1467.         plork     |   |  tlec  ade   nl
  1468.                   owe you
  1469.     
  1470.     Thus the mapped address is (in a readable notation):
  1471.         
  1472.         C=nl; ADMD=ade; PRMD=tlec; O=you; OU=owe; S=plork
  1473.     
  1474.  
  1475.  
  1476. Houttuin                   Expires August 1993               [page 24]
  1477.  
  1478. Internet-Draft             RFC 1327 tutorial             February 1993
  1479.  
  1480.  
  1481.     Had there been any left-hand-side encoded SAs in the localpart
  1482.     that didn't represent a complete mnemonic O/R address, the
  1483.     localpart would be mapped to those SAs. E.g.
  1484.         
  1485.         "/S=plork/GQ=jr/OU=u/OU=spc ctr/"@o.tlec.nl
  1486.         ->
  1487.         C=nl; ADMD=ade; PRMD=tlec; O=o; OU=space ctr;
  1488.         OU=u; S=plork; GQ=jr
  1489.     
  1490.     This is necessary to reverse the special use of localpart to left-
  1491.     hand-side encode certain attributes. See 3.3.2.2.1.
  1492.     
  1493.     You might ask yourself by now why such rules are needed at all.
  1494.     Why don't we just use map1 in the other direction? The problem is
  1495.     that a symmetric mapping function (a bijection) would indeed be
  1496.     ideal, but it's not feasible. Asymmetric mappings exist for a
  1497.     number of reasons:
  1498.         
  1499.         - To make sure that uucp addresses etc. get routed over local
  1500.           gateways.
  1501.         
  1502.         - Preferring certain address forms, while still not forbidding
  1503.           others to use another form. Examples of such reasons are:
  1504.             
  1505.             - Fading out old address forms.
  1506.             
  1507.             - If an RFC 822 address is mapped to ADMD= ; it means that
  1508.               the X.400 mail can be routed over any ADMD in that
  1509.               country. One single ADMD may of course send out an
  1510.               address containing: ADMD=ade; . It must also be possible
  1511.               to map such an address back.
  1512.     
  1513.     So we do need mapping rules from RFC 822 to X.400 too. The name of
  1514.     the file containing the listing of all such mapping rules, which
  1515.     is distributed to all gateways world-wide, is widely known under
  1516.     the following names:
  1517.         
  1518.         'mapping 2'
  1519.         'mapping table 2'
  1520.         'map2'
  1521.         'table 2'
  1522.         'R2X'
  1523.     
  1524.     If the RFC 822 localpart and/or domainpart contain characters that
  1525.     would not immediately fit in the value of a PN attribute (! % _),
  1526.     the mapping algorithm falls back to DDA mapping. In this case, the
  1527.     SAs that will be used are still determined by mapping the
  1528.     domainpart according to the mapping rule. In our case:
  1529.         
  1530.  
  1531.  
  1532.  
  1533.  
  1534.  
  1535. Houttuin                   Expires August 1993               [page 25]
  1536.  
  1537. Internet-Draft             RFC 1327 tutorial             February 1993
  1538.  
  1539.  
  1540.         100%user@work.tlec.nl
  1541.         ->
  1542.         DD.RFC-822=100(p)user(a)address.tlec.nl;
  1543.         C=nl; ADMD=ade; PRMD=tlec; O=work
  1544.     
  1545.     If no map2 rule can be found, a third table of rules is scanned:
  1546.     the gateway table. This table has the same syntax as mapping table
  1547.     2, but its semantics are different. First of all, a domain that
  1548.     only has an entry in the gateway table is always mapped into an
  1549.     RFC 822 DDA. For a domain that is purely RFC 822 based, but whose
  1550.     mail may be relayed over an X.400 network, the gateway table
  1551.     associates with such a domain the SAs of the gateway to which the
  1552.     X.400 message should be routed. That gateway will then be
  1553.     responsible for gatewaying the message back into the RFC 822
  1554.     world. E.g. if we have the gateway table entry:
  1555.         
  1556.         gov#PRMD$gateway.ADMD$Internet.C$us#
  1557.     
  1558.     (and we assume that no overruling map2 rule for the top level
  1559.     domain 'gov' exists), this would force all gateways to perform the
  1560.     following mapping:
  1561.         
  1562.         bush@dole.gov
  1563.         ->
  1564.         DD.RFC-822=bush(a)dole.gov;
  1565.         C=us; ADMD=Internet; PRMD=gateway
  1566.     
  1567.     This is very similar to the default DDA mapping, except the SAs
  1568.     are those of a gateway that has declared to be responsible for a
  1569.     certain RFC 822 domain, not those of the local gateway. And thus,
  1570.     this mechanism helps avoid the third party problem discussed in
  1571.     chapter 3.2.2.
  1572.     
  1573.     The name of the table containing these gateway mapping rules,
  1574.     which is distributed to all gateways world-wide, is widely known
  1575.     under the following names:
  1576.         
  1577.         'gate table'
  1578.         'gateway table'
  1579.         'GW'
  1580.  
  1581.  
  1582. 3.4. Table co-ordination
  1583.  
  1584.     
  1585.     As already stated, the use of mapping tables will only function
  1586.     smoothly if all gateways in the world use the same tables. On the
  1587.     global level, the collection and distribution of RFC 1327 address
  1588.     mapping tables is co-ordinated by the MHS Co-ordination Service:
  1589.        
  1590.  
  1591.  
  1592.  
  1593.  
  1594. Houttuin                   Expires August 1993               [page 26]
  1595.  
  1596. Internet-Draft             RFC 1327 tutorial             February 1993
  1597.  
  1598.  
  1599.        SWITCH Head Office
  1600.        MHS Co-ordination Service
  1601.        Limmatquai 138
  1602.        CH-8001 Zurich, Europe
  1603.        Tel. +41 1 261 8112
  1604.        Fax. +41 1 261 8133
  1605.        
  1606.        RFC 822: project-team@switch.ch
  1607.        X.400:   C=ch;ADMD=arcom;PRMD=switch;O=switch;S=project-team;
  1608.     
  1609.     The procedures for collection and distribution of mapping rules
  1610.     can be found on the MHS Co-ordination server, nic.switch.ch: in
  1611.     the directory /procedures . The server is available per FTP:
  1612.         
  1613.         username: cosine
  1614.         password: <your RFC 822 address>
  1615.     
  1616.     If you want to define mapping rules for your own local domain, you
  1617.     can find the right contact person in your country or network (the
  1618.     gateway manager) on the same server, in the directory /mhs-
  1619.     services .
  1620.  
  1621.  
  1622. 3.5. Local additions
  1623.  
  1624.     
  1625.     Since certain networks want to define rules that should only be
  1626.     used within their networks, such rules should not be distributed
  1627.     world-wide. Consider two networks that both want to reach the top-
  1628.     level-domain 'arpa' over their local gateway. They would both like
  1629.     to use a mapping 2 rule for this purpose:
  1630.         
  1631.         TLec in NL:     arpa#PRMD$gateway.ADMD$tlec.C$nl#
  1632.         
  1633.         SWITCH in CH:   arpa#PRMD$gateway.ADMD$switch.C$ch#
  1634.     
  1635.     (You may have noticed correctly that they should have defined such
  1636.     rules in the gateway table, but for the sake of the example, we
  1637.     assume they defined it in mapping table 2. This was the way things
  1638.     were done in the days of RFC 987, and many networks are still
  1639.     doing it this way these days.)
  1640.     
  1641.     Since a mapping table cannot contain two mapping rules with the
  1642.     same domain on the left hand side, such 'local mappings' are not
  1643.     distributed globally. There exists a RARE draft proposal ([MSG-
  1644.     93]) which defines a mechanism for allowing and automatically
  1645.     dealing with conflicting mapping rules, but this mechanism has not
  1646.     been implemented as to date. After having received the global
  1647.     mapping tables from the MHS Co-ordination Service, many networks
  1648.     add 'local' rules to map2 and the gateway table before installing
  1649.     them on their gateways. Note that the reverse mapping 2 rules for
  1650.     such local mappings _are_ globally unique, and can thus be
  1651.  
  1652.  
  1653. Houttuin                   Expires August 1993               [page 27]
  1654.  
  1655. Internet-Draft             RFC 1327 tutorial             February 1993
  1656.  
  1657.  
  1658.     distributed world-wide. This is even necessary, because addresses
  1659.     that were mapped with a local mapping rule may leak out to other
  1660.     networks (here comes the third party problem again...). Such other
  1661.     networks should at least be given the possibility to map the
  1662.     addresses back. So the global mapping table 1 would in this case
  1663.     contain the two rules:
  1664.         
  1665.         PRMD$gateway.ADMD$tlec.C$nl#arpa#
  1666.         PRMD$gateway.ADMD$switch.C$ch#arpa#
  1667.     
  1668.     Note that if such rules would have been defined as as local gate
  1669.     table entries instead of gate2 entries, there would have been no
  1670.     need to distribute the reverse mappings world-wide (the reverse
  1671.     mapping of a DDA encoded RFC 822 address is simply done by
  1672.     stripping the SAs, see 3.3.1.1.).
  1673.  
  1674.  
  1675. 3.6. Product specific formats
  1676.  
  1677.     
  1678.     Not all software uses the RFC 1327 format of the mapping tables
  1679.     internally. Almost all formats allow comments on a line starting
  1680.     with a # sign. Some examples of different formats:
  1681.     
  1682.     RFC 1327
  1683.         
  1684.         # This is pure RFC 1327 format
  1685.         # table 1: X.400 -> RFC 822
  1686.         #
  1687.         PRMD$tlec.ADMD$ade.C$nl#tlec.nl#
  1688.         # etc.
  1689.         
  1690.         # table 2: RFC 822 -> X.400
  1691.         #
  1692.         arcom.ch#ADMD$arcom.C$ch#
  1693.         # etc.
  1694.     
  1695.     EAN
  1696.         
  1697.         # This is EAN format
  1698.         # It uses the readable format for X.400 domains and TABs
  1699.         # to make a 'readable mapping table format'.
  1700.         # table 1: X.400 -> RFC 822
  1701.         #
  1702.         P=tlec; A=ade; C=nl;       # tlec.nl
  1703.         # etc.
  1704.         
  1705.         # table 2: RFC 822 -> X.400
  1706.         #
  1707.         arcom.ch                   # A=arcom; C=ch;
  1708.         # etc.
  1709.     
  1710.  
  1711.  
  1712. Houttuin                   Expires August 1993               [page 28]
  1713.  
  1714. Internet-Draft             RFC 1327 tutorial             February 1993
  1715.  
  1716.  
  1717.     PP
  1718.         
  1719.         # This is PP format
  1720.         # table 1: X.400 -> RFC 822
  1721.         #
  1722.         PRMD$tlec.ADMD$ade.C$nl:tlec.nl
  1723.         # etc.
  1724.         
  1725.         # table 2: RFC 822 -> X.400
  1726.         #
  1727.         arcom.ch:ADMD$arcom.C$ch
  1728.         # etc.
  1729.     
  1730.     Most R&D networks have tools to automatically generate these
  1731.     formats from the original RFC 1327 tables;, some even distribute
  1732.     the tables within their networks in several formats. If you need
  1733.     mapping tables in a specific format, please contact your national
  1734.     or R&D network's gateway manager. See chapter 3.4 .
  1735.  
  1736.  
  1737. 3.7. Guidelines for mapping rule definition
  1738.  
  1739.     
  1740.     Beware that defining mapping rules without knowing what you are
  1741.     doing can be disastrous not only for your network, but also for
  1742.     others. You should be rather save if you follow at least these
  1743.     rules:
  1744.         
  1745.         - First of all, read this tutorial;.
  1746.         
  1747.         - Don't use local mappings. (see chapter 3.5)
  1748.         
  1749.         - Make sure any domain you map to can also be mapped back;.
  1750.         
  1751.         - Aim for symmetry.
  1752.         
  1753.         - Don't define a gateway table entry if the same domain
  1754.           already has a map2 entry. Such a rule would be redundant.
  1755.         
  1756.         - Map to ADMD=0; if you will not be connected to any ADMD for
  1757.           the time being.
  1758.         
  1759.         - Only map to ADMD= ; if you are indeed reachable though
  1760.           _any_ ADMD in your country.
  1761.         
  1762.         - Mind the difference between PRMD=; and PRMD=@; and make sure
  1763.           which one you need.
  1764.         
  1765.         - Don't define mappings for domains over which you have no
  1766.           naming authority.
  1767.         
  1768.  
  1769.  
  1770.  
  1771. Houttuin                   Expires August 1993               [page 29]
  1772.  
  1773. Internet-Draft             RFC 1327 tutorial             February 1993
  1774.  
  1775.  
  1776.         - Before defining a mapping rule, make sure you have the
  1777.           permission from the naming authority of the domain you want
  1778.           to map to. Normally, this should be the same organisation as
  1779.           the mapping authority of the domain in the left hand side of
  1780.           the mapping rule. This principle is called 'administrative
  1781.           equivalence'.
  1782.         
  1783.         - Avoid redundant mappings. E.g. is all domains under
  1784.           'tlec.nl' are in your control, don't define:
  1785.             
  1786.             first.tlec.nl#O$first.PRMD$tlec.ADMD$ade.C$nl#
  1787.             last.tlec.nl#O$last.PRMD$tlec.ADMD$ade.C$nl#
  1788.             always.tlec.nl#O$always.PRMD$tlec.ADMD$ade.C$nl#
  1789.         
  1790.           but rather have only one mapping rule:
  1791.             
  1792.             tlec.nl#PRMD$tlec.ADMD$ade.C$nl#
  1793.         
  1794.         - Before introducing a new mapped version of a domain, make
  1795.           sure the world can route to that mapped domain;.
  1796.         
  1797.           E.g. If you are operating a PRMD: C=zz; ADMD=ade; PRMD=ergo;
  1798.           and you want to define the mapping rules:
  1799.             
  1800.             map1: PRMD$ergo.ADMD$ade.C$zz#ergo.zz#
  1801.             map2: ergo.zz#PRMD$ergo.ADMD$ade.C$zz#
  1802.         
  1803.           Make sure that ergo.zz is DNS routeable (has an A or an MX
  1804.           record) and will be routed to a gateway that will route the
  1805.           mails from the Internet to you over X.400.
  1806.         
  1807.           In the other direction, if you are operating the Internet
  1808.           domain cs.woodstock.edu, and you want to define a mapping
  1809.           for that domain:
  1810.             
  1811.             map2: cs.woodstock.edu#O$cs.PRMD$woodstock.ADMD$ .C$us#
  1812.             map1: O$cs.PRMD$woodstock.ADMD$ .C$us#cs.woodstock.edu#
  1813.         
  1814.           Make sure that C=us; ADMD= ; PRMD=woodstock; O=cs; is
  1815.           routeable in the X.400 world and will be routed to a gateway
  1816.           that will route the mails from X.400 to your RFC 822 domain
  1817.           over SMTP. Within the GO-MHS community, this would be done
  1818.           by registering a line in a so-called domain document, which
  1819.           will state to which mail relay this domain should be routed.
  1820.         
  1821.           Co-ordinate any such actions with your national or MHS'
  1822.           gateway manager. See chapter 3.4.
  1823.  
  1824.  
  1825.  
  1826.  
  1827.  
  1828.  
  1829.  
  1830. Houttuin                   Expires August 1993               [page 30]
  1831.  
  1832. Internet-Draft             RFC 1327 tutorial             February 1993
  1833.  
  1834.  
  1835. 4. Conclusion
  1836.  
  1837.     
  1838.     Mail gatewaying remains a complicated subject. If after reading
  1839.     this tutorial, you have the feeling you understand the basics, try
  1840.     solving some problems for an end-user. This will often convince
  1841.     you that you didn't understand a bit after all. Even after having
  1842.     worked with it for many years, you can still make amazing
  1843.     discoveries every other week. So at least this is a rewarding area
  1844.     to work in :-) That is, if you have a patient nature..... Don't
  1845.     give up!
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852.  
  1853.  
  1854.  
  1855.  
  1856.  
  1857.  
  1858.  
  1859.  
  1860.  
  1861.  
  1862.  
  1863.  
  1864.  
  1865.  
  1866.  
  1867.  
  1868.  
  1869.  
  1870.  
  1871.  
  1872.  
  1873.  
  1874.  
  1875.  
  1876.  
  1877.  
  1878.  
  1879.  
  1880.  
  1881.  
  1882.  
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889. Houttuin                   Expires August 1993               [page 31]
  1890.  
  1891. Internet-Draft             RFC 1327 tutorial             February 1993
  1892.  
  1893.  
  1894. Appendix A. References
  1895.  
  1896.       
  1897.       [821]       RFC 821; Jonathan B. Postel; SIMPLE MAIL TRANSFER
  1898.                   PROTOCOL; University of Southern California; August
  1899.                   1982
  1900.       
  1901.       [822]       RFC 822; Crocker, D.; Standard of the Format of ARPA
  1902.                   Internet Text Messages; University of Delaware,
  1903.                   August 1982
  1904.       
  1905.       [987]       RFC 987; Steve Kille; Mapping between X.400 and RFC
  1906.                   822; UK Academic Community Report (MG.19), June
  1907.                   1986
  1908.       
  1909.       [1280]      RFC 1280; Jon Postel; IAB OFFICIAL PROTOCOL
  1910.                   STANDARDS; USC/Information Sciences Institute,
  1911.                   March 1992
  1912.       
  1913.       [1310]      RFC 1310; Lyman Chapin; The Internet Standards
  1914.                   Process; BBN Communications Corporation, March 1992
  1915.       
  1916.       [1327]      RFC 1327; Steve Hardcastle-Kille; Mapping between
  1917.                   X.400(1988) / ISO 10021 and RFC 822; University
  1918.                   College London, May 1992
  1919.       
  1920.       [1328]      RFC 1328; Steve Hardcastle-Kille; X.400 1988 to 1984
  1921.                   downgrading; University College London, May 1992
  1922.       
  1923.       [BP-88]     Bernhard Plattner, Hannes Lubich; Electronic Mail
  1924.                   Systems and Protocols Overview and Case Study;
  1925.                   Proceedings of the IFIP WG 6.5 International
  1926.                   working conference on message handling systems and
  1927.                   distributed applications; Costa Mesa 1988; North-
  1928.                   Holland, 1989
  1929.       
  1930.       [JH-92]     Jeroen Houttuin; @route:100%name@address, a
  1931.                   practical guide to MHS configuration; Top-Level EC
  1932.                   1992 (not yet published)
  1933.       
  1934.       [HTA-faq]   Harald Tveit Alvestrand; Frequently asked questions
  1935.                   on X.400. Regularly posted on USEnet in newsgroup
  1936.                   comp.protocols.iso.x400
  1937.       
  1938.       [MSG-93]    Jeroen Houttuin, Klaus Hansen, Serge Aumont;; RFC
  1939.                   1327 address mapping authorities. RARE WG-MSG
  1940.                   working document
  1941.       
  1942.       [pug]       COSINE MHS Pocket User Guide. COSINE MHS Project
  1943.                   Team 1992. Also available in several languages from
  1944.                   the MHS Co-ordination server,
  1945.                   nic.switch.ch:/public/user-guides . See chapter
  1946.                   3.4.
  1947.  
  1948. Houttuin                   Expires August 1993               [page 32]
  1949.  
  1950. Internet-Draft             RFC 1327 tutorial             February 1993
  1951.  
  1952.  
  1953.       
  1954.       [RG-87]     Rudiger Grimm, Steinar Haug; A minimum Profile for
  1955.                   RFC 987; GMD, November 1987; RARE MHS Project Team;
  1956.                   July 1990. Also available from
  1957.                   nic.switch.ch:/procedures/min-rfc987-profile . See
  1958.                   chapter 3.4.
  1959.       
  1960.       [X.4xx(84)] CCITT Recommendations X.400 - X.430. Data
  1961.                   Communication Networks: Message Handling Systems.
  1962.                   CCITT Red Book, Vol. VIII - Fasc. VIII.7, Malaga-
  1963.                   Torremolinos 1984
  1964.       
  1965.       [X.4xx(88)] CCITT Recommendations X.400 - X.420. Data
  1966.                   Communication Networks: Message Handling Systems.
  1967.                   CCITT Blue Book, Vol. VIII - Fasc. VIII.7,
  1968.                   Melbourne 1988
  1969.  
  1970.  
  1971.  
  1972.  
  1973.  
  1974.  
  1975.  
  1976.  
  1977.  
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984.  
  1985.  
  1986.  
  1987.  
  1988.  
  1989.  
  1990.  
  1991.  
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007. Houttuin                   Expires August 1993               [page 33]
  2008.  
  2009. Internet-Draft             RFC 1327 tutorial             February 1993
  2010.  
  2011.  
  2012. Appendix C. Abbreviations
  2013.  
  2014.       ADMD     Administration Management Domain
  2015.       ASCII    American Standard Code for Information Exchange
  2016.       ASN.1    Abstract Syntax Notation One
  2017.       BCD      Binary-Coded Decimal
  2018.       BITNET   Because It's Time NETwork
  2019.       CCITT    Comite Consultatif International de Telegraphique et
  2020.                Telephonique
  2021.       COSINE   Co-operation for OSI networking in Europe
  2022.       DARPA    Defense Advanced Research Projects Agency
  2023.       DFN      Deutsches Forschungsnetz
  2024.       DL       Distribution List
  2025.       DNS      Domain Name System
  2026.       DoD      Department of Defense
  2027.       EBCDIC   Extended BCD Interchange Code
  2028.       IAB      Internet Activities Board
  2029.       IEC      International Electrotechnical Commission
  2030.       IESG     Internet Engineering Steering Group
  2031.       IETF     Internet Engineering Task Force
  2032.       IP       Internet Protocol.
  2033.       IPM      Inter-Personal Message
  2034.       IPMS     Inter-Personal Messaging Service
  2035.       IPN      Inter-Personal Notification
  2036.       ISO      International Organisation for Standardisation
  2037.       ISODE    ISO Development Environment
  2038.       JNT      Joint Network Team (UK)
  2039.       JTC      Joint Technical Committee (ISO/IEC)
  2040.       MHS      Message Handling System
  2041.       MOTIS    Message-Oriented Text Interchange Systems
  2042.       MTA      Message Transfer Agent
  2043.       MTL      Message Transfer Layer
  2044.       MTS      Message Transfer System
  2045.       MX       Mail eXchanger
  2046.       OSI      Open Systems Interconnection
  2047.       OU(s)    Organizational Unit(s)
  2048.       PP       Mail gatewaying software (not an abbreviation)
  2049.       PRMD     Private Management Domain
  2050.       RARE     Reseaux Associes pour la Recherche Europeenne
  2051.       RFC      Request for comments
  2052.       SMTP     simple mail transfer protocol
  2053.       TCP      Transmission Control Protocol
  2054.       UUCP     Unix to Unix CoPy
  2055.  
  2056.  
  2057.  
  2058.  
  2059.  
  2060.  
  2061.  
  2062.  
  2063.  
  2064.  
  2065.  
  2066. Houttuin                   Expires August 1993               [page 34]
  2067.  
  2068. Internet-Draft             RFC 1327 tutorial             February 1993
  2069.  
  2070.  
  2071. Appendix D. Author's address
  2072.  
  2073.     
  2074.     Jeroen Houttuin
  2075.     RARE Secretariat
  2076.     Singel 466-468
  2077.     NL-1017 AW Amsterdam, Europe
  2078.     
  2079.     Tel. +31 20 6391131
  2080.     Fax. +31 20 6393289
  2081.     RFC 822: houttuin@rare.nl
  2082.     X.400:   C=nl;ADMD=400net;PRMD=surf;O=rare;S=houttuin
  2083.  
  2084.  
  2085.  
  2086.  
  2087.  
  2088.  
  2089.  
  2090.  
  2091.  
  2092.  
  2093.  
  2094.  
  2095.  
  2096.  
  2097.  
  2098.  
  2099.  
  2100.  
  2101.  
  2102.  
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.  
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116.  
  2117.  
  2118.  
  2119.  
  2120.  
  2121.  
  2122.  
  2123.  
  2124.  
  2125. Houttuin                   Expires August 1993               [page 35]
  2126.